/***************************************************************************
 *  Filename: flightdata.h
 *  Class: FlightData
 *  
 *  Copyright 2012  Jacco van der Spek
 *  <jaccovdspek@gmail.com>
 *
 *  Copyright 2012  Mario Henrique Voorsluys
 *  <forcaeluz@gmail.com>
 *  
 ****************************************************************************/

/*
 *
 * This file is part of %ProjectName%.
 *
 *    %ProjectName% is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    %ProjectName% is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with %ProjectName%.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FLIGHTDATA_H
#define FLIGHTDATA_H

#include <QObject>
#include <gpsdata.h>

class FlightData
{
public:
    FlightData();

    GPSData getGPSData();
    float getBaroAltitude();
    float getArDroneAltitude();
    float getAltitude();
    quint16 getBattery();
    quint32 getArDroneStatus();
    unsigned char getSteering();
    float getRoll();
    float getPitch();
    float getYaw();
    float getVx();
    float getVy();
    float getVz();

    void setGPSData(GPSData input);
    void setBaroAltitude(double baroAlt);
    void setDroneAltitude(float droneAlt);
    void setBattery(int tBattery);
    void setArDroneStatus(uint status);
    void setSteering(unsigned char tSteering);
    void setAngles(float roll, float pitch, float yaw);
    void setVelocities(float vx, float vy, float vz);

private:
    GPSData gpsData;
    quint16 batteryState;
    uint arDroneState;
    unsigned char steering;
    float baroAltitude;
    float arDroneAltitude;
    float roll;
    float pitch;
    float yaw;
    float vx;
    float vy;
    float vz;
};

#endif // FLIGHTDATA_H
